package com.hntxk.cqzd.flup.entity;

import com.hntxk.core.framework.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Entity
@Setter
@Getter
@Table(name="tbl_flup_file")
public class FlupFile extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 4771721944486065702L;

    /**
     * 文件ID
     */
    @Id
    private Long fileId;

    /**
     * 随访信息ID
     */
    private Long flupId;
    /**
     *文件代号
     */
    private String fileCode;
    /**
     *文件名称
     */
    private String fileName;
    /**
     *文件扩展名
     */
    private String fileExtension;
    /**
     *文件地址
     */
    private String fileAddress;
    /**
     *文件大小
     */
    private double fileSize;
    /**
     *上传时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date fileUpTime;
    /**
     *下载次数
     */
    private Long fileDownloadNo;
    /**
     *文件备注
     */
    private String fileRemark;
    /**
     *上传人ID
     */
    private Long upUserId;
    /**
     *上传人姓名
     */
    private String upUserName;
    /**
     *
     */
    private String contentType;
    /**
     *
     */
    private Long diacrisisId;

}
